package com.primeton.eos.oss.core.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

@Configuration
public class OssConfig {

	@Bean("OSS-REST-GROUP")
	public Docket ossDocket() {
		return new Docket(DocumentationType.SWAGGER_2).groupName("oss").select()
				.apis(RequestHandlerSelectors.basePackage("com.primeton.eos.oss"))
				.build().enable(true);

	}

}